<template>
	<view>
		<view class="cu-modal bottom-modal" :class="modalName=='bottomModal'?'show':''">
			<view class="cu-dialog bg-white">
				<view class="cu-bar bg-white">
					<view class="action text-blue" @tap="hideModal">取消</view>
					<view class="action text-green" @tap="subModal">确定</view>
				</view>
				<view class="line-row">

				</view>
				<view class="padding-xl" style="padding-top: 0;">
					<slot></slot>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				modalName: null
			};
		},
		methods: {
			subModal() {
				this.$emit('subModal')
			},
			hideModal() {
				this.modalName = null
				this.$emit('hideModal')
			}
		}
	}
</script>

<style lang="scss">

</style>
